package com.rylan.repository;

import com.rylan.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


import java.util.List;

/**
 * @author rylan
 * @description
 */
@Repository
public interface RoomRepository {
    List<Room> findAll(int index,int limit);
    int count();
    Room findById(long id);
    void save(Room room);
    void update(Room room);
    void deleteById(long id);

}
